/* Translationia 自定义样式 */

/* 全局样式 */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}

#app {
  height: 100%;
}

/* 顶部导航栏样式 */
.header {
  background-color: #409EFF;
  color: white;
  padding: 0 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: relative;
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.title {
  font-size: 20px;
  font-weight: bold;
  margin-left: 8px;
  letter-spacing: 0.5px;
}

/* 侧边栏样式 */
.el-aside {
  background-color: #f5f7fa;
  border-right: 1px solid #e6e6e6;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
  transition: width 0.3s;
}

.menu {
  border-right: none;
}

.el-menu-item {
  height: 56px;
  line-height: 56px;
  transition: all 0.3s;
}

.el-menu-item:hover {
  background-color: #ecf5ff;
}

.el-menu-item.is-active {
  background-color: #ecf5ff;
  color: #409EFF;
  border-right: 3px solid #409EFF;
}

/* 主内容区域样式 */
.main-content {
  padding: 20px;
  background-color: #f9fafc;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.main-card {
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s;
}

/* 页面过渡动画 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* 侧边栏底部 */
.aside-footer {
  padding: 10px;
  text-align: center;
  border-top: 1px solid #e6e6e6;
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #f5f7fa;
}

/* 翻译页面样式 */
.translation-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.translation-content {
  display: flex;
  gap: 20px;
  height: 100%;
}

.div-source, .div-dist {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  padding: 15px;
}

.source-header, .dist-header {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.source-content, .dist-content {
  flex: 1;
  margin-bottom: 15px;
}

.source-footer, .dist-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #909399;
  font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .translation-content {
    flex-direction: column;
  }
  
  .header {
    padding: 0 10px;
  }
  
  .title {
    font-size: 16px;
  }
  
  .el-aside {
    width: 60px !important;
  }
  
  .el-menu-item span {
    display: none;
  }
  
  .main-content {
    padding: 10px;
  }
}

/* 美化滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 页面头部样式 */
.el-page-header {
  padding: 10px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #ebeef5;
}

/* 卡片悬浮效果 */
.el-card:hover {
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* 按钮悬浮效果 */
.el-button:not(.is-disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 头像样式 */
.el-avatar {
  cursor: pointer;
  transition: all 0.3s;
}

.el-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(64, 158, 255, 0.5);
}